﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SMyGuildWarScore extends IMessageBase
    {
        public var guildId:SEntityId;
        public var exploit:int;
        public var kill:int;
        public var contribute:int;
        public var hasVipExploit:Boolean;
        public var isFinal:Boolean;
        public const _type:int = 5091;
        public static var _regist:SMyGuildWarScore = new SMyGuildWarScore(true);

        public function SMyGuildWarScore(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SMyGuildWarScore();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            this.guildId.__write(param1);
            param1.writeInt(this.exploit);
            param1.writeInt(this.kill);
            param1.writeInt(this.contribute);
            param1.writeBool(this.hasVipExploit);
            param1.writeBool(this.isFinal);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.guildId = new SEntityId();
            this.guildId.__read(param1);
            this.exploit = param1.readInt();
            this.kill = param1.readInt();
            this.contribute = param1.readInt();
            this.hasVipExploit = param1.readBool();
            this.isFinal = param1.readBool();
            return;
        }// end function

    }
}
